package org.nanhill.xmlro;

import org.nanhill.xmlro.sro.SroException;

/**
 * Factory for returning serialization methods.
 * 
 * @author alin
 * 
 */
public interface DeserializerFactory {


	/**
	 * Returns the serializer for a class.
	 * 
	 * @param cl
	 *            the class of the object that needs to be serialized.
	 * 
	 * @return a serializer object which is do the serialization.
	 * @throws SroException
	 */
	Deserializer getDeserializer(String nodeName);
	
}
